import {createBrowserRouter} from 'react-router-dom'
import App from '../App'
import Page1 from '../pages/Page1'
import Page2 from '../pages/Page2'
const router=createBrowserRouter([
    {
        path:'/',
        element:<App></App>,
        children:[
            {index:true,element:<Page1></Page1>},
            {
                path:'/page1',
                element:<Page1></Page1>
            },
            {
                path:'/page2',
                element:<Page2></Page2>
            }
        ]
    }
])
export default router